package com.ykh.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ykh
 * @since 2023年10月26日
 */
@Data
@Accessors(chain = true)
@TableName("user")
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 账号
     */
    @TableId(value = "account", type = IdType.AUTO)
    private String account;

    /**
     * 头像
     */
    @TableField("avatar")
    private String avatar;

    /**
     * 注册时间
     */
    @TableField("create_date")
    private LocalDateTime createDate;

    /**
     * 是否删除 1为删除 0为未删除
     */
    @TableField("deleted")
    private Integer deleted;

    /**
     * 邮箱
     */
    @TableField("email")
    private String email;

    /**
     * 手机号
     */
    @TableField("mobile_phone_number")
    private String mobilePhoneNumber;

    /**
     * 昵称
     */
    @TableField("nick_name")
    private String nickName;

    /**
     * 密码
     */
    @TableField("password")
    private String password;

    /**
     * 状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 粉丝数
     */
    @TableField("fans_num")
    private Integer fansNum;

    /**
     * 关注数
     */
    @TableField("focus_num")
    private Integer focusNum;

    public User(String userAccount, String nickName) {
        this.account = userAccount;
        this.nickName = nickName;
    }
}
